package org.stream.answerduel.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 功能描述：
 * @Auther: 何俊霖
 * @Date: 2019/7/8 13:01
 */
@Entity
@Data
@Accessors(chain = true)
@Table(name = "t_user")
public class User extends BaseEntity
{
    @Column(name = "wechat_id", unique = true)
    private String wechatID;

    @Column(name = "nickname")
    private String nickName;

    @Column(name = "avatar_url")
    private String avatarUrl;

    @Column(name ="token" ,nullable = false, columnDefinition = "TEXT")
    private String token;

    @Column(name = "score")
    protected int score;

    @Column(name = "win_count")
    private int winCount;

    @Column(name = "lose_count")
    private int loseCount;

    @Column(name = "draw_count")
    private int drawCount;

    @Column(name = "right_count")
    private int rightCount;

    @Column(name = "wrong_count")
    private int wrongCount;
}
